package com.pajk.user.util;

import java.io.FileNotFoundException;
import java.io.IOException;
import java.util.Properties;

import com.pajk.user.service.login.LoginServiceHttpExportImpl;

/**
 * @author Frank.zhang
 *        2014-05-29
 *
 */
public class ConfigUtil {
	  public static Properties prop;
	    static {
	    	prop = new Properties();
	    	try {
	    		prop.load(LoginServiceHttpExportImpl.class.getResourceAsStream("/config.properties"));
			} catch (FileNotFoundException e) {
				e.printStackTrace();
			} catch (IOException e) {
				e.printStackTrace();
			}
	    }
	    
	    public static String getProperty(String property) {
	    	return prop.getProperty(property);
	    }
}
